package com.guomao.controller;


import com.guomao.entity.Order;
import com.guomao.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@Controller
@RestController
public class MyControllerE {


    @RequestMapping("/testa")
    public String testa(@RequestBody String str) {

        System.out.println(">>>>>>>>>>>>>>>>>" + str);
        return "main";
    }

    @RequestMapping("/testb")
    public String testb(@RequestBody User user) {

        System.out.println(">>>>>>>>>>>>>>>>>" + user);
        return "main";
    }
}
